package com.ruoyi.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.ElongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 艺龙通用接口
 * 2024-10-24
 */
@RestController
@RequestMapping("/hotel/elong")
public class ElongController extends BaseController {

    @Autowired
    ElongService elongService;

    @PostMapping("/login")
    public AjaxResult login() {
        String loginToken = elongService.getLoginToken();
        return success(loginToken);
    }
}